package com.world.cat.app;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class AppConstant {
    //实体类的搜索路径
    public final static String entity_pattern = "classpath*:/com/world/*/model/**/*.class";
    //Controller的搜索路径
    public final static String controller_pattern = "classpath*:/com/world/cat/controller/**/*.class";
    
    //同一个Controller下面点击某个页面时默认点亮的左侧菜单的url后缀
    public final static String default_related_url_fix = "/home";
    public static Map<String, String> defaultRelatedMenuMap = new HashMap<>();
    public static final String encryptKey = "ABCDBEFGCF461D1603D20591FE3DA29";
    public final static String areaRoot = "a1376a61-c741-11e6-a3a8-1c3947c86651";
    public final static String AUTO_HOME = "/auto/home";//自动生成代码的url前缀
    public static final Set<String> baseEntityFields = new HashSet<>();


    //七牛云存储配置
    public static final String QINIU_PRIVATE_BUCKET_CONFIG = "qiniu.private.bucket.config";//七牛私有容器配置
    public static final String QINIU_PUBLIC_BUCKET_CONFIG = "qiniu.public.bucket.config";//七牛公共容器配置
    public static final String LOCAL_PRIVATE_FILE_FOLDER = "local.private.file.folder";//本地私有文件上传文件夹
    public static final String LOCAL_PUBLIC_FILE_FOLDER = "local.public.file.folder";//本地公共文件上传文件夹

    static {
        baseEntityFields.add("id");
        baseEntityFields.add("creator");
        baseEntityFields.add("modifier");
        baseEntityFields.add("createTime");
        baseEntityFields.add("modifyTime");
    }
}
